<extend name="Public/base" />
<block name="body">
<div class="main-title">
		<h2>修改文章</h2>
	</div>
	<form action="{:U('Site/newsupdate')}" method="post" enctype="multipart/form-data" id='theform' class="form-horizontal">
	<input type="hidden" name="id" value="{$arr.id}">
		<div class="form-item clearfix">

			<label class="item-label fl" style='line-height:28px;margin-right:15px;'></label>
            
			<div class="controls fl">
                 <label class="item-label">标题</label>
                 <input type="text" name="title" value="{$arr.title}" style="width:250px" />
                 <?php
		switch ($arr['category'])
		{
		case 1:
		  $category="友情链接";
		  break;
		case 2:
		   $category="关于我们";
		  break;
		case 3:
		  $category="安全条款";
		  break;
		case 4:
		  $category="版本申明";
		  break;
		case 5:
		   $category="诚征英才";
		  break;
		case 6:
		  $category="帮助中心";
		  break;
		}
			?>
                     <label class="item-label">上级分类<span class="check-tips">{$category}</span></label>
                    <b>详情</b>
				
	                <textarea name="aboutus" value="{$aboutus}">{$arr.content}</textarea>
	                {:hook('adminArticleEdit' , array('name' => 'aboutus'))}
	          
			</div>
		</div><br>
		<div class="form-item clearfix">
			
				
			<button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>